package com.uroad.jilinpda.modle;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * @创建者 wlw
 * @创建时间 2019/6/3 12:04
 * @描述 OBU订单信息
 */
public class OBUOrderInfoMDL implements Serializable {

    //    orderno	订单号	字符型（32）	M
    //    numberplate	车牌号码	字符型（32）	com.tencent.bugly.proguard.M
    //    platecolor	车牌颜色	整形	M
    //    ordertype	订单类型	整形	M	227 担保账户签约
    //238 储值卡新办
    //239 记账卡新办
    //240 二次激活
    //    isgm	是否使用国密加密信道发行	整形	M	0 否，明文信道
    //1 是，GM密文信道
    //    isneedpic	是否需要上传图片	整形	M	0 否，无需上传
    //1 是，需要上传
    private String orderno;
    private String numberplate;
    private String platecolor;
    private String ordertype;
    private String isgm;
    private String isneedpic;
    private String vehtype;

    public String getVehtype() {
        return vehtype;
    }

    public void setVehtype(String vehtype) {
        this.vehtype = vehtype;
    }

    public String getOrderno() {
        return orderno == null ? "" : orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public String getNumberplate() {
        return numberplate == null ? "" : numberplate;
    }

    public void setNumberplate(String numberplate) {
        this.numberplate = numberplate;
    }

    public String getPlatecolor() {
        return platecolor == null ? "" : platecolor;
    }

    public String getColor(){
        String color = "";
        if (TextUtils.isEmpty(platecolor)) {
            return "";
        }
        switch (platecolor) {
            case "0":
                color = "蓝色";
                break;
            case "1":
                color = "黄色";
                break;
            case "2":
                color = "黑色";
                break;
            case "3":
                color = "白色";
                break;
            case "4":
                color = "渐变绿色";
                break;
            case "5":
                color = "黄绿双拼色";
                break;
            case "6":
                color = "蓝白渐变色";
                break;
        }
        return color;
    }

    public void setPlatecolor(String platecolor) {
        this.platecolor = platecolor;
    }

    public String getOrdertype() {
        return ordertype == null ? "" : ordertype;
    }

    public void setOrdertype(String ordertype) {
        this.ordertype = ordertype;
    }

    public String getIsgm() {
        return isgm == null ? "" : isgm;
    }

    public void setIsgm(String isgm) {
        this.isgm = isgm;
    }

    public String getIsneedpic() {
        return isneedpic == null ? "" : isneedpic;
    }

    public void setIsneedpic(String isneedpic) {
        this.isneedpic = isneedpic;
    }
}

